package oop.encapsulation;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Employee
 * Package: oop.encapsulation
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-20
 * Time: 11:13
 */

//员工信息
public class Employee {


    private String name;
    private char gender;
    private int age;
    private String phoneNumber;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getInfo() {
        return getName() + "\t" + getGender() + "\t" + getAge() + "\t" + getPhoneNumber();
    }

}
